﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Dal.Migrations
{
    public partial class v8 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "siteInfo",
                columns: table => new
                {
                    Sid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Sname = table.Column<int>(type: "int", nullable: false),
                    shengid = table.Column<int>(type: "int", nullable: false),
                    shiid = table.Column<int>(type: "int", nullable: false),
                    xianid = table.Column<int>(type: "int", nullable: false),
                    Sadds = table.Column<int>(type: "int", nullable: false),
                    Sphone = table.Column<int>(type: "int", nullable: false),
                    Sdefault = table.Column<int>(type: "int", nullable: false),
                    Suid = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_siteInfo", x => x.Sid);
                });

            migrationBuilder.CreateTable(
                name: "Ssx",
                columns: table => new
                {
                    Xid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Xname = table.Column<int>(type: "int", nullable: false),
                    Ssid = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Ssx", x => x.Xid);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "siteInfo");

            migrationBuilder.DropTable(
                name: "Ssx");
        }
    }
}
